const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    proxy: {
      '/api': {
        target: 'http://192.168.10.12:8180',
        changeOrigin: true,
        pathRewrite: { '^/api': '' }
      },

    }
    },
    css: {
      loaderOptions: {
        scss: {
          // 自动导入scss文件
          additionalData: `
            @use "@/styles/var.scss" as *;
          `,
        }
      }
    }
  
})
